/**
 *@auther: tang
 @Date: 2020-11-13
 *Project: group-booking-shop-manage-system
 */
import React from "react"
import {Spin, Timeline} from "antd"
class ViewAdmLog extends React.Component {
    render() {
        return (
            <div>
                <Spin tip="正在查找该管理员记录" spinning={this.props.logIsLoading}>
                <Timeline>
                    {this.props.admLog.map?this.props.admLog.map((item,index)=>{
                       return  <div key={index}>
                            <Timeline.Item color="green" >
                                <span>
                                    {item.date}
                                </span>
                                <span style={{marginLeft:"8px"}}>
                                   {item.action}
                                </span>
                                </Timeline.Item>
                            </div>
                    }):""}
                </Timeline>
            </Spin>
            </div>
        )
    }
}

export {ViewAdmLog as default}
